#ifndef IMU_H_
#define IMU_H_
#include "hal_data.h"

void IMU_Update(float* result);

void IMU_Init(void);

void IMU_Restart(void);

uint8_t IMU_Restart_Ready(void);

#define IMU_PWR_MGMT0   0X10
#define IMU_ACCEL_CONFIG0   0X1B
#define IMU_GYRO_CONFIG0    0X1C
#define IMU_REG_MISC2       0x7F
#define IMU_DRIVE_CONFIG0   0x32

#define IMU_ACCEL_DATA_X1_UI    0X00
#define IMU_ACCEL_DATA_X0_UI    0X01
#define IMU_ACCEL_DATA_Y1_UI    0X02
#define IMU_ACCEL_DATA_Y0_UI    0X03
#define IMU_ACCEL_DATA_Z1_UI    0X04
#define IMU_ACCEL_DATA_Z0_UI    0X05
#define IMU_GYRO_DATA_X1_UI     0X06
#define IMU_GYRO_DATA_X0_UI     0X07
#define IMU_GYRO_DATA_Y1_UI     0X08
#define IMU_GYRO_DATA_Y0_UI     0X09
#define IMU_GYRO_DATA_Z1_UI     0X0A
#define IMU_GYRO_DATA_Z0_UI     0X0B



#endif
